Exclude URLs from character count in Japanese#17970
Merged
marinakoleva merged 11 commits intorelease/18.0from Jan 19, 2022
Merged
Exclude URLs from character count in Japanese#17970marinakoleva merged 11 commits intorelease/18.0from
marinakoleva merged 11 commits intorelease/18.0from
Conversation
…com:Yoast/wordpress-seo into LINGO-1259-exclude-url-from-character-count # Conflicts: # packages/yoastseo/src/languageProcessing/languages/ja/helpers/countCharacters.js
Contributor
|
CR done, all Testing instructions pass. However, I'm seeing the Video SEO specific feedback strings and the Video tab in English, instead of Japanese, so I'm not going to merge the issue yet. |
Contributor
|
Merge has been approved as no change regarding translation was done in this issue. |
13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Summary
This PR can be summarized in the following changelog entry:
countCharactersfunction.Relevant technical choices:
<figure>tags. The figure tag is used for all kinds of images and videos, and also captions are embedded in those. Since we include captions in our character count, removing the text embedded in those tags was not a viable solution. So as a result of this fix no URLs are taken into account in the characters count in Japanese.stripSpaces.jsfunction where those spaces get removed when sanitizing the string.Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
Testing the text length assessment
テキストの長さ)https://en.wikipedia.org/wiki/Node.js,https://yoast.com/shopify-features/languages/, and make sure that the text length assessment result still doesn't change.Testing the Video SEO video body assessment
composer require yoast/wordpress-seo:dev-LINGO-1259-exclude-url-from-character-count@devConfirm that the feedback of the Video body assessment returns an orange bullet with the following feedback:
body のコピーは、検索エンジンが動画のトピックを理解するには短すぎます動画のコンテンツを説明するコンテンツをさらに追加してください。Test that full stops are counted as only one character
吾輩は猫である。私は犬です。Test instructions for QA when the code is in the RC
QA can test this PR by following these steps:
Impact check
This PR affects the following parts of the plugin, which may require extra testing:
UI changes
Other environments
[Shopify]and I have added test instructions for Shopify.Documentation
Quality assurance
Fixes https://yoast.atlassian.net/browse/LINGO-1259